
__kernel void prefixSumC(__global uint * gin, __global uint * gout, uint size){
    uint sum = 0;
    for( uint i = 0; i < size; ++i ){
        uint s = gin[i];
        gout[ i ] = sum;
        sum += s;
    }
}
